package com.groupThree.service;

import com.groupThree.dao.BaseAdminDao;
import com.groupThree.dao.imp.AdminDaoMysql;

import java.util.Date;

public class AdminService {
    private static BaseAdminDao dao = new AdminDaoMysql();
    public  static void updateLoginTimeAndIp(String username, Date date, String ip){
        dao.updateLonginTime(username,date,ip);
    }

    public static boolean login(String username,String password){
        return dao.login(username,password);
    }
}
